package com.foreknow.demo6;

public class Student {
    //    1. 查询所有数据（name）  select name from student
    //    2. 根据id查询某一条数据 select name from student where id=?
    //    3. 根据id修改某一条数据 update student set name=? where id=?
    //    4. 根据id删除某条数据 delete from student where id=?
    //    5. 添加一条数据 insert into student values(?,?,?,?,?,?)

    /**
     * 查询所有数据（name）  select name from student
     * @return
     */
    public static String[] getQueryAll() {
        return null;
    }

    /**
     * 根据id查询某一条数据 select name from student where id=?
     * @param id
     * @return
     */
    public static String getQueryById(int id) {
        return null;
    }

    /**
     * update student set name=? where id=?
     * @param id
     * @param name
     * @return
     */
    public static boolean updateInfo(int id,String name) {
        return true;
    }

    /**
     * delete from student where id=?
     * @param id
     * @return
     */
    public static boolean deleteById(int id) {
        return true;
    }

    /**
     * 添加一条数据 insert into student values(?,?,?,?,?,?)
     * @param name
     * @param phone
     * @param email
     * @param title
     * @return
     */
    public static boolean insert(String name,String phone,String email,String title) {
        return true;
    }



}
